/**

 */
;
(function(){
	'use strict';
	
	var app = angular.module('fwa.services');
	app.service('AgreementService', ['$http','BaseURL', function ($http,baseUrl) {
//		var moduleRoot = "hcp";
        /**
         * 协议列表--查询协议列表信息
         * @param jsonObj
         * @param callback
         */
		
		this.query = function(jsonObj,callback){
			return $http({
				url:baseUrl + 'agreement/agreementPage.do',
				method:'GET',
				params:jsonObj
			});
		};
        /**
         * 协议列表--新增协议信息
         * @param jsonObj
         * @param callback
         */
        this.create = function(jsonObj,callback){
        	return $http({
				url:baseUrl + 'agreement/agreementCreate.do',
				method:'POST',
				params:jsonObj
			});
//            hcpmsBaseService.add(moduleRoot+"/agreement/create",jsonObj,callback);
        };
        /**
         * 查询支付方式
         */
        this.queryPayment = function(){
        	return $http({
				url:baseUrl + 'agreement/queryPayment.do',
				method:'GET'
			});
        };

        /**
         * 协议明细--查询协议明细信息
         * @param id
         * @param callback
         */
        this.show = function(jsonObj,callback){
			return $http({
				url:baseUrl + 'agreement/agreementShow.do',
				method:'GET',
				params:jsonObj
			});
		};
        /**
         * 协议明细--查询附件信息
         * @param id
         * @param callback
         */
        this.showImage = function(jsonObj,callback){
            return $http({
                url:baseUrl + 'agreement/getImage.do',
                method:'GET',
                params:jsonObj
            });
        };
//            hcpmsBaseService.get(moduleRoot+"/agreement/show",jsonObj,callback);
   
        /**
         * 修改协议信息
         * @param jsonObj
         * @param callback
         */
		this.update = function(jsonObj,callback){
//			hcpmsBaseService.update(moduleRoot+"/agreement/update",jsonObj,callback);
		};
        /**
         * 影像删除
         * @param jsonObj
         * @param callback
         */
        this.deleteImgList = function(jsonObj,callback){
//            hcpmsBaseService.remove("common/deleteFile",jsonObj,callback);
        };
        /**
         * 影像下载
         * @param jsonObj
         * @param callback
         */
        this.getImgInfo = function(jsonObj,callback){
//            hcpmsBaseService.add("common/downloadFile",jsonObj,callback);
        };
        this.upload = function(callback){
//            callback($http);
        }
        this.queryImgList = function(jsonObj,callback){
        	
//            hcpmsBaseService.query("common/file/list",jsonObj,callback);
        };
	}]);
})();